
add_definitions(-D__ROS_LONG64__)

if(MSVC)
    add_compile_options(
        /wd4090 # C4090: 'function': different 'const' qualifiers
        /wd4146 # C4146: unary minus operator applied to unsigned type, result still unsigned
        /wd4189 # C4189: 'x': local variable is initialized but not referenced
        /wd4267 # C4267: '=': conversion from 'size_t' to 'int', possible loss of data
        /wd4305) # C4305: '=': truncation from 'double' to 'FLOAT'
    if(ARCH STREQUAL "amd64")
        add_compile_options(
            /wd4312 # C4312: 'type cast': conversion from 'unsigned int' to 'char *' of greater size
            )
    endif()
endif()

add_subdirectory(advapi32)
add_subdirectory(advpack)
add_subdirectory(amstream)
add_subdirectory(atl)
add_subdirectory(atl100)
add_subdirectory(atl80)
add_subdirectory(avifil32)
add_subdirectory(bcrypt)
add_subdirectory(browseui)
add_subdirectory(cabinet)
add_subdirectory(cmd)
add_subdirectory(comcat)
add_subdirectory(comctl32)
add_subdirectory(comdlg32)
add_subdirectory(credui)
add_subdirectory(crypt32)
add_subdirectory(cryptnet)
add_subdirectory(cryptui)
add_subdirectory(d3dcompiler_43)
add_subdirectory(d3drm)
add_subdirectory(d3dx9_36)
add_subdirectory(dbghelp)
add_subdirectory(devenum)
add_subdirectory(dinput)
add_subdirectory(dinput8)
add_subdirectory(dnsapi)
add_subdirectory(dplayx)
add_subdirectory(dsound)
add_subdirectory(dxdiagn)
add_subdirectory(faultrep)
add_subdirectory(fusion)
add_subdirectory(gdi32)
add_subdirectory(gdiplus)
add_subdirectory(hid)
add_subdirectory(hlink)
add_subdirectory(hnetcfg)
add_subdirectory(imagehlp)
add_subdirectory(imm32)
add_subdirectory(inetcomm)
add_subdirectory(inetmib1)
add_subdirectory(iphlpapi)
add_subdirectory(itss)
add_subdirectory(jscript)
add_subdirectory(kernel32)
add_subdirectory(localspl)
add_subdirectory(localui)
add_subdirectory(lz32)
add_subdirectory(mapi32)
add_subdirectory(mlang)
add_subdirectory(mmdevapi)
add_subdirectory(mpr)
add_subdirectory(msacm32)
add_subdirectory(mscms)
add_subdirectory(mscoree)
add_subdirectory(msctf)
add_subdirectory(mshtml)
add_subdirectory(msi)
add_subdirectory(msrle32)
add_subdirectory(mstask)
add_subdirectory(msvcrt)
add_subdirectory(msvcrtd)
add_subdirectory(msvfw32)
add_subdirectory(msxml3)
add_subdirectory(netapi32)
add_subdirectory(netcfgx)
add_subdirectory(ntdll)
add_subdirectory(ntdsapi)
add_subdirectory(odbccp32)
add_subdirectory(ole32)
add_subdirectory(oleacc)
add_subdirectory(oleaut32)
add_subdirectory(oledlg)
add_subdirectory(opengl32)
add_subdirectory(pdh)
add_subdirectory(propsys)
add_subdirectory(psapi)
add_subdirectory(qedit)
add_subdirectory(qmgr)
add_subdirectory(quartz)
add_subdirectory(rasapi32)
add_subdirectory(reg)
add_subdirectory(regedit)
add_subdirectory(riched20)
add_subdirectory(riched32)
add_subdirectory(rpcrt4)
add_subdirectory(rsaenh)
add_subdirectory(schannel)
add_subdirectory(scrrun)
add_subdirectory(secur32)
add_subdirectory(serialui)
add_subdirectory(services)
add_subdirectory(setupapi)
add_subdirectory(shdocvw)
add_subdirectory(shell32)
add_subdirectory(shlwapi)
add_subdirectory(snmpapi)
add_subdirectory(spoolss)
add_subdirectory(sti)
add_subdirectory(sxs)
add_subdirectory(twain_32)
add_subdirectory(urlmon)
add_subdirectory(user32)
add_subdirectory(userenv)
add_subdirectory(usp10)
add_subdirectory(uxtheme)
add_subdirectory(vbscript)
add_subdirectory(version)
add_subdirectory(wbemdisp)
add_subdirectory(wbemprox)
add_subdirectory(windowscodecs)
add_subdirectory(windowscodecsext)
add_subdirectory(winhttp)
add_subdirectory(wininet)
add_subdirectory(winmm)
#add_subdirectory(winspool)
add_subdirectory(wintrust)
add_subdirectory(wldap32)
add_subdirectory(wmiutils)
add_subdirectory(wmvcore)
add_subdirectory(ws2_32)
add_subdirectory(wscript)
add_subdirectory(wshom)
add_subdirectory(wtsapi32)
add_subdirectory(xcopy)
add_subdirectory(xinput1_3)
add_subdirectory(xmllite)
